package gd.qaq.blue.bluespick.util;

import org.bukkit.command.CommandSender;

public class StringUtil {
    public static String colorFormat(String str) {
        return str.replace("&", "§");
    }

    public static void success(CommandSender p, String str) {
        p.sendMessage("§f[§a采集§f]§a" + colorFormat(str));
    }

    public static void error(CommandSender p, String str) {
        p.sendMessage("§f[§c采集§f]§c" + colorFormat(str));
    }
}
